#{extends 'main.html' /} #{set title:'Block User' /}
<head>
    <script type="application/javascript">
        function block(){
        
            var ideaDeveloper = document.getElementById("ideaDeveloper").value;
            var entity = document.getElementById("entity").value;
          
            
            $.getJSON('@{BlockIdeaDeveloper.blockFromEntity()}', {
                'ideadeveloperName': ideaDeveloper,
                'entityName': entity
            
            }, function(data){
                alert(data.output);
            },'json');
            
        }
         </script>
        <script type="application/javascript">
          function unblock(){
        
            
            var ideaDeveloper = document.getElementById("ideaDeveloper").value;
            var entity = document.getElementById("entity").value;
          
            
            $.getJSON('@{BlockIdeaDeveloper.unblockFromEntity()}', {
                'ideadeveloperName': ideaDeveloper,
                'entityName': entity
            
            }, function(data){
                alert(data.output);
            },'json');
            
        }
    </script>
</head>
<body>
    <style>
        .inputHighlighted {
            color: #ff0000;
        }
    </style>
    <fieldset>
        <div>
            <p>
                <label for=" IdeaDeveloper ">
                    IdeaDeveloper:
                </label>
                <input name="ideaDeveloper" id="ideaDeveloper" value="" type="text" /><span class="inputHighlighted">*</span>
            </p>
            <p>
                <label for="Entity">
                    Entity: 
                </label>
                <input name="entity" id="entity" value="" type="text" /><span class="inputHighlighted">*</span>
            </p>
            <p>
                <input type="submit" id="blockUser" value="Block User" onClick="block()"/>
                <input type="submit" id="unblockUser" value="Unblock User" onClick="unblock()"/>
                <br/>
                &nbsp;
                <br/>
            </p>
           
        </div>
    </fieldset>
</body>
